import request from '@/utils/request'
// 图片验证码
export const getCode = (clientToken) => request.get('/api/user-service/user/imageCode/' + clientToken, {
  // Headers: { 'Content-Type': 'application/json' },
  responseType: 'arraybuffer'
})
// 图片上传
export const

  setImg = (img) => request.post('/api/vm-service/sku/fileUpload', {
    Headers: { 'Content-Type': 'multipart/form-data' },
    fileName: img
  })
// 登录
export const goLogin = data => request.post('/api/user-service/user/login', {
  ...data,
  // Headers: { 'Content-Type': 'multipart/form-data' }
  loginType: 0

})
